﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DevExpress.Xpo;
using Aij1.Model;
using Aij1.Cms;

namespace Aij1.UserControls
{
    public partial class CtrlSpeicalMenu : System.Web.UI.UserControl
    {
        public int FocusedId { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!DesignMode)
            {
                repCat.DataSource = new XPCollection<A_Special>(((BasePage)Page).XpoSession);
                repCat.DataBind();
            }
        }

        protected int GetCssClassIndex(object oid)
        {
            return (int)oid == FocusedId ? 1 : 2;
        }

    }
}